Fix indentation in a few places.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sat, 10 Dec 2005 23:16:26 +0000 (00:16 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sat, 10 Dec 2005 23:16:26 +0000 (00:16 +0100)
Signed-off-by: Xin Li <xin.b.li@intel.com>
tools/python/xen/xend/image.py
xen/include/asm-x86/mm.h

index 3e1bf8688cb17738b0307e8223e9d82faf478da8..b60c5f475459acc3ead23e6c84c81ff8dca04910 100644 (file)
@@ -365,13 +365,13 @@ class VmxImageHandler(ImageHandler):
 
     def getDomainMemory(self, mem):
         """@see ImageHandler.getDomainMemory"""
-       page_kb = 4
-       if os.uname()[4] == 'ia64':
-           page_kb = 16
+        page_kb = 4
+        if os.uname()[4] == 'ia64':
+            page_kb = 16
         # for ioreq_t and xenstore
         static_pages = 2
         return mem + (self.getPageTableSize(mem / 1024) + static_pages) * page_kb
-            
+
     def getPageTableSize(self, mem_mb):
         """Return the pages of memory needed for 1:1 page tables for physical
            mode.
index de1b22150d33a5c43245d05510d71da6d7fc3ac5..bbc01dea8176ab00732509d66a5b384ec757d4be 100644 (file)
@@ -276,7 +276,7 @@ int check_descriptor(struct desc_struct *d);
 #define VALID_MFN(_mfn)         (!((_mfn) & (1U<<31)))
 
 #define set_mfn_from_pfn(pfn, mfn) (phys_to_machine_mapping[(pfn)] = (mfn))
-static inline unsigned long get_mfn_from_pfn(unsigned long pfn) 
+static inline unsigned long get_mfn_from_pfn(unsigned long pfn)
 {
     unsigned long mfn;
     l1_pgentry_t pte;
@@ -284,11 +284,11 @@ static inline unsigned long get_mfn_from_pfn(unsigned long pfn)
     if ( (__copy_from_user(&pte, &phys_to_machine_mapping[pfn],
                            sizeof(pte)) == 0) &&
          (l1e_get_flags(pte) & _PAGE_PRESENT) )
-       mfn = l1e_get_pfn(pte);
+        mfn = l1e_get_pfn(pte);
     else
-       mfn = INVALID_MFN;
-    
-    return mfn; 
+        mfn = INVALID_MFN;
+
+    return mfn;
 }
 
 #ifdef MEMORY_GUARD
@@ -331,8 +331,8 @@ struct ptwr_info {
 int  ptwr_init(struct domain *);
 void ptwr_destroy(struct domain *);
 void ptwr_flush(struct domain *, const int);
-int  ptwr_do_page_fault(struct domain *, unsigned long, 
-                       struct cpu_user_regs *);
+int  ptwr_do_page_fault(struct domain *, unsigned long,
+                        struct cpu_user_regs *);
 int  revalidate_l1(struct domain *, l1_pgentry_t *, l1_pgentry_t *);
 
 void cleanup_writable_pagetable(struct domain *d);